<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>POS收单运营管理平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<s:url value="/css/a.css"/>" type="text/css" rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css" rel="stylesheet" />
<link href="<s:url value="/css/common.css"/>" type="text/css"
	rel="stylesheet" />
	
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.7.2.min.js" />"></script>
	
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/AddressQuery.js"/>'></script>	
		<script type="text/javascript" src="/js/tabcontrol/TabPanel.js"></script>
<style>
　　　
　　　　　a {
	text-decoration: none
}

　　　　　a:hover {
	color: red;
	text-decoration: none
}

a:VISITED {
	color: red;
}
　　


　　　
</style>

<script type="text/javascript">
	$(document).ready(function() {
	    $("#buttonid").click(function(){ 
	 	 	$("#buttonid").attr("disabled", true);
	    	$("#queryNoEstrnForm").attr("action","<%=basePath%>/noEstrnMerchant/queryNoEstrnMerchant.ct");
	    	$("#queryNoEstrnForm").submit();
	     });

	    $("#szPower").click(function() {
			$("#queryNoEstrnForm").attr("action","<%=basePath%>/noEstrnMerchant/exportNoEstrnMerchant.ct");
			$("#queryNoEstrnForm").submit();

		});
	});

</script>
</head>
<body>
		<s:form id="queryNoEstrnForm" action="/noEstrnMerchant/queryNoEstrnMerchant.ct" method="post"
			theme="simple">
			<table class="tb">
		    <tbody>
				<tr class="tb-line">
					<td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
				</tr>
				<tr class="tb-line">
					<td class="tb-td" colspan="4"><div class="tb-h3">连续15天无交易商户信息查询</div></td>
				</tr>
				<tr class="tb-line">
		            <td width="12%" style="min-width: 150px" align="right" class="tb-td">
		                <div class="tb-h4">商户号：</div>
		            </td>
		            <td class="tb-td">
		                <label class="tb-input-normal">
		                	<s:textfield id="mchtId"
								name="searchCondition.mchtId" cssClass="queryWidth" />
						</label>
					</td>
		            <td width="12%" style="min-width: 150px" align="right" class="tb-td">
		                <div class="tb-h4">商户名称：</div>
		            </td>
		            <td class="tb-td">
		                <label class="tb-input-normal">
		                	<s:textfield id="mchtName"
								name="searchCondition.mchtName" cssClass="queryWidth" />
						</label>
					</td>
				</tr>
				<tr class="tb-line">
		            <td width="12%" style="min-width: 150px" align="right" class="tb-td">
		                <div class="tb-h4">终端号：</div>
		            </td>
		            <td class="tb-td">
		                <label class="tb-input-normal">
		                	<s:textfield id="termCode"
								name="searchCondition.termCode" cssClass="queryWidth" />
						</label>
					</td>
		            <td width="12%" style="min-width: 150px" align="right" class="tb-td">
		                <div class="tb-h4">查询时间：</div>
		            </td>
		            <td class="tb-td">
		                <label class="tb-input-normal">
		                	
							<s:select cssClass="queryWidth" name="searchCondition.trnRange"
								id="trnRange"
								list="#request.noEstrnRangeMap" listKey="key" listValue="value" />
						</label>
					</td>
				</tr>
				
				<tr class="tb-line">
						<td colspan="4" align="center"><span style="font-color: red"><s:actionerror /></span>
							<span style="font-color: red;"><s:actionmessage /></span > <span style="font-color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
				<tr class="tb-line">
		            <td class="tb-td line-submit" align="right" colspan="4">
		                <label class="tb-input-submit">
							<input id="buttonid" value="查   询" type="button"/>
						</label>
		                <label class="tb-input-submit">
							<s:reset value="取  消" />
						</label>
						<s:if test="#request.searchRsList!=null&&#request.searchRsList.size()>0">
			                <label class="tb-input-submit">
								<input id="szPower" type="button" value="导出Excel" />
							</label>
						</s:if>
					</td>	
				</tr>
			</table>
		
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr class="tb-line">
						<td class="tb-td paging" colspan="12" align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/noEstrnMerchant/queryNoEstrnMerchant.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
			
		<div class="big-tb">
		    <table id="tableList" class="tb" style="width: 100%;">
				<thead>
		            <tr class="tb-line">
		                <th class="tb-th" colspan="14">连续15天无交易商户信息查询列表</th>
		            </tr>
					<tr class="tb-line bg-gray">		
						<th class="tb-th">直属代理商</th>
						<th class="tb-th">合作机构</th>
						<th class="tb-th">所属大区</th>
						<th class="tb-th">商户号</th>
						<th class="tb-th">商户名称</th>
						<th class="tb-th">终端号</th>
						<th class="tb-th">终端型号</th>
						<th class="tb-th">终端是否有效</th>
						<th class="tb-th">绑定时间</th>
						<th class="tb-th">SN号</th>
						<th class="tb-th">装机地址</th>
						<th class="tb-th">创建时间</th>
						<th class="tb-th">发展人</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="estrn">
							<tr class="tb-line">
							<td  class="tb-td" align="center" width="15%">
								<s:property value="#estrn.directlyAgent"/>
							</td>
					        <td  class="tb-td" align="center" width="5%"> 
					        	<s:property value="#estrn.oneagentName"/>
							</td>
							<td  class="tb-td" align="center" width="5%"> 
					        	<s:property value="#estrn.companyName"/>
							</td>
							<td  class="tb-td" align="center" width="10%"> 
					        	<s:property value="#estrn.mchtId"/>
							</td>
							<td  class="tb-td" align="center" width="10%"> 
					        	<s:property value="#estrn.mchtName"/>
							</td>
							<td  class="tb-td" align="center" width="10%"> 
					        	<s:property value="#estrn.termCode"/>
							</td>
							<td  class="tb-td" align="center"> 
					        	<s:property value="#estrn.posName"/>
							</td>
							<td  class="tb-td" align="center"> 
					        	<s:property value="#estrn.termStatus"/>
							</td>
							<td  class="tb-td" align="center"> 
					        	<s:property value="#estrn.brandDate"/>
							</td>
							<td  class="tb-td" align="center"> 
					        	<s:property value="#estrn.serialNum"/>
							</td>
							<td  class="tb-td" align="center"> 
					        	<s:property value="#estrn.installlocation"/>
							</td>
							<td  class="tb-td" align="center"> 
					        	<s:property value="#estrn.crtDate"/>
							</td>
							<td  class="tb-td" align="center"> 
					        	<s:property value="#estrn.operatorsName"/>
							</td>
						</s:iterator>
				</tbody>
			</table>
		</div>
	</s:form>
</body>
</html>
